
//语言包解析
function setlange_obj() {
	$("div[data-l],span[data-l],i[data-l],p[data-l],em[data-l],a[data-l]").each(function() {
		var $th = $(this),
			$thdata = $th.attr("data-l");
		$th.html(global_lange[$thdata]);
	})
	$("input[data-p],textarea[data-p]").each(function() {
		var $th = $(this),
			$thdap = $th.attr("data-p");
		$th.attr("placeholder", global_lange[$thdap])
	})
}

function setlange_obj_fun2() {
	var $element = $("#langue_tital"),
		$data = $element.attr("data-l");
	$element.html(global_lange[$data]);
	var $element_right = $("#langue_tital_right"),
		$data_right = $element_right.attr("data-l");
	$element_right.html(global_lange[$data_right]);
}

//图片错误
//载入错误图片
function lod(t) {
	t.onerror = null;
	t.src = con_img;
}
//将时间换算为时分秒
function time1(s) {
	var nn = new Date();
	nn.setTime(s * 1000);
	return nn.format("hhmmss");
}
//获取url参数
function getQueryString(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
	var r = window.location.search.substr(1).match(reg);
	if(r != null) return unescape(r[2]);
	return null;
}
//保留两位小数
function reservedDecimal(val, digit) {
	return Number(val).toFixed(digit);
}
//设置根元素大小
function setPage() {
	var HTML = document.getElementsByTagName('html')[0];
	var deviceWidth = document.documentElement.clientWidth;
	if(deviceWidth >= 750) {
		deviceWidth = 750;
		HTML.style.width = deviceWidth + "px";
		HTML.style.margin = "0 auto";
	} else {
		HTML.style.width = deviceWidth + "px";
		HTML.style.margin = "0";
	};
	var scale = deviceWidth / 750;
	HTML.style.fontSize = scale * 100 + 'px';

}
setPage(); //设置根元素大小
window.onresize = function() {
	setPage(); //设置根元素大小
}
//全局返回上一页
function com_back() {
	back()
}
//base64转换url
function dataURItoBlob(base64Data) {
	var byteString;
	if(base64Data.split(',')[0].indexOf('base64') >= 0)
		byteString = atob(base64Data.split(',')[1]);
	else
		byteString = unescape(base64Data.split(',')[1]);
	var mimeString = base64Data.split(',')[0].split(':')[1].split(';')[0];
	var ia = new Uint8Array(byteString.length);
	for(var i = 0; i < byteString.length; i++) {
		ia[i] = byteString.charCodeAt(i);
	}
	return new Blob([ia], {
		type: mimeString
	});
}
//根据秒数计算出对应的时间
function formatDuring(mss) {
	var days = parseInt(mss / (1000 * 60 * 60 * 24));
	var hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
	var minutes = parseInt((mss % (1000 * 60 * 60)) / (1000 * 60));
	var seconds = (mss % (1000 * 60)) / 1000;
	return {
		d: p_0(days),
		h: p_0(hours),
		m: p_0(minutes),
		s: p_0(seconds)
	};
}
//获取cookie
function getCookie(key) {
	if(isAPP) {
		return plus.storage.getItem(key);
	} else {
		return localStorage.getItem(key)
	}
}
//设置cookie
function setCookie(key, value, Days) {
	//console.log(typeof value);
	if(typeof value == "number") var value = value.toString();
	if(isAPP) {
		return plus.storage.setItem(key, value);
	} else {
		return localStorage.setItem(key, value);
	}
}
//删除cookie
function delCookie(key) {
	if(isAPP) {
		plus.storage.removeItem(key);
	} else {
		localStorage.removeItem(key);
	}

}
//删除所有cookie
function clearCookie() {
	if(isAPP) {
		plus.storage.clear();
	} else {
		localStorage.clear();
	}
}

function p_0(s) {
	return s < 10 ? '0' + s : s;
}
//end
//计时器
function j_time() {
	//hour = minute = millisecond = 0; //初始化
	function ti() { //计时器
		millisecond = millisecond + 1;
		if(millisecond >= 60) {
			millisecond = 0;
			minute = minute + 1;
		}
		if(minute >= 60) {
			minute = 0;
			hour = hour + 1;
		}

		if(minute >= 60) {
			minute = 0;
			hour = hour + 1;
		}
		work_time = (hour < 10 ? '0' + hour : hour) + ":" + (minute < 10 ? '0' + minute : minute) + ":" + (millisecond < 10 ? '0' + millisecond : millisecond);
	}

	function checkTime(i) {
		if(i < 10) {
			i = "0" + i
		}
		return i
	}
}

//二维码生成
function codes(txt, lable, width, height) { //txt生成的数据 lable生成得到标签位置
	if(!width) {
		width = 200
	}
	if(!height) {
		height = 200
	}
	var tx = String(txt);
	$(lable).qrcode({
		render: "canvas", //canvas方式
		width: width, //宽度
		height: height, //高度
		text: tx //任意内容
	});
}
//返回当前周 范围
function getweek(now) {
	var a = new Array("7", "1", "2", "3", "4", "5", "6");
	var week = now.getDay();
	return a[week];
}
//时间格式化1
Date.prototype.format = function(format) {
	var o = {
		"M+": this.getMonth() + 1, //month
		"d+": this.getDate(), //day
		"h+": this.getHours(), //hour
		"m+": this.getMinutes(), //minute
		"s+": this.getSeconds(), //second
		"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
		"S": this.getMilliseconds() //millisecond
	}
	if(/(y+)/.test(format)) {
		format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
	}
	for(var k in o) {
		if(new RegExp("(" + k + ")").test(format)) {
			format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
		}
	}

	if(format == 0) {
		format = 0;
	}
	return format;
}

// 精确乘法
function accMul(arg1, arg2) {
	var m = 0,
		s1 = arg1.toString(),
		s2 = arg2.toString();
	try {
		m += s1.split(".")[1].length
	} catch(e) {}
	try {
		m += s2.split(".")[1].length
	} catch(e) {}
	return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m)
}

// 精确除法
function accDiv(arg1, arg2) {
	var t1 = 0,
		t2 = 0,
		r1, r2;
	try {
		t1 = arg1.toString().split(".")[1].length;
	} catch(e) {}
	try {
		t2 = arg2.toString().split(".")[1].length;
	} catch(e) {}
	
	r1 = Number(arg1.toString().replace(".", ""));
	r2 = Number(arg2.toString().replace(".", ""));
	return(r1 / r2) * Math.pow(10, t2 - t1);

}

// 精确减法
function accSub(arg1, arg2) {
	var r1, r2, m, n;
	try {
		r1 = arg1.toString().split(".")[1].length
	} catch(e) {
		r1 = 0
	}
	try {
		r2 = arg2.toString().split(".")[1].length
	} catch(e) {
		r2 = 0
	}
	m = Math.pow(10, Math.max(r1, r2));
	n = (r1 >= r2) ? r1 : r2;
	return((arg1 * m - arg2 * m) / m);
}

// 精确加法
function accAdd(arg1, arg2) {
	var r1, r2, m;
	try {
		r1 = arg1.toString().split(".")[1].length;
	} catch(e) {
		r1 = 0;
	}
	try {
		r2 = arg2.toString().split(".")[1].length;
	} catch(e) {
		r2 = 0;
	}
	m = Math.pow(10, Math.max(r1, r2));
	return(arg1 * m + arg2 * m) / m;
}
//获取地理位置

function getLocation() {
	if(navigator.geolocation) {
		navigator.geolocation.getCurrentPosition(showPosition, showError);
	} else {
		alert("浏览器不支持地理定位。");
	}
}

// function showError(error) {
// 	switch(error.code) {
// 		case error.PERMISSION_DENIED:
// 			alert("定位失败,用户拒绝请求地理定位");
// 			break;
// 		case error.POSITION_UNAVAILABLE:
// 			alert("定位失败,位置信息是不可用");
// 			break;
// 		case error.TIMEOUT:
// 			alert("定位失败,请求获取用户位置超时");
// 			break;
// 		case error.UNKNOWN_ERROR:
// 			alert("定位失败,定位系统失效");
// 			break;
// 	}
// }

Number.prototype.toFixed = function(s)  
{  
	var $th1=Number(this)
	var fhao="";
	if($th1<0){
		fhao="-"
		$th1=Math.abs($th1);
	}
	var ns=(parseInt($th1 * Math.pow( 10, s ) + 0.5)/ Math.pow( 10, s )).toString();  
	if(ns.indexOf(".")!=-1){
		if(ns.split(".")[1].length==1&& s==2){
			ns=ns+"0";
		}
	}else{
		if(s==2){
			ns=ns+".00";
		}
		if(s==1){
			ns=ns+".0";
		}
	}
	//console.log(fhao+ns)
    return fhao+ns
} 

//保留两位小数
function toFixed2(str, num) {
	return parseFloat(str).toFixed(num);
}

//地图定位
function setmap1(ss) {
	var map;
	var watchId;
	if(navigator.geolocation) {
		watchId = navigator.geolocation.getCurrentPosition(showPosition, showError, {
			enableHighAcuracy: true,
			timeout: 5000,
			maximumAge: 100000
		}); //
		//设置定位缓存
		return watchId;
	} else {

		$.modal({
			title: "tip",
			text: "Device not supported！",
			buttons: [{
				text: "<span class='aaa'>ok</span>",
				onClick: function() {

				}
			}]
		});

		return false;
	}
}

function showPosition(position) {
	//  positioning.latitude = position.coords.latitude;//纬
	//  positioning.longitude = position.coords.longitude;//经
	//  positioning.accuracy = position.coords.accuracy;//精确度
	setItem("gps", position.coords.latitude + "," + position.coords.longitude);
	setTimeout(function(){
		refresh_updata();
	},1000)
	try {
		setindexpage.start.success1();
	} catch(e) {}
	//	$(".position_p").text(lange[1188])
	$.ajax({
		type: "get",
		dataType: "json",
		url: "https://maps.googleapis.com/maps/api/geocode/json",
		data: {
			"latlng": position.coords.latitude + "," + position.coords.longitude,
			"key": "AIzaSyD6y069KLRK7rnWuMikfibiV9VsH3HjsGg"
		},
		success: function(e) {
//			$(".position_p").text(e.results[0].address_components[0].long_name)
		},
		error:function(e){
			setItem("errorGps2",JSON.stringify(e))
		}
	})
	return position

}

function gps_position(arr) { //逆解析 longitude经度  latitude纬度
	if(isAPP){
	var position = "";
	$.ajax({
		type: "get",
		dataType: "json",
		url: "https://maps.googleapis.com/maps/api/geocode/json",
		data: {
			"latlng": arr[0] + "," + arr[1],
			"key": "AIzaSyDm6n6a_OHBN3JEXEqTw1Sti-cAiyQ1UxM"
		},
		success: function(e) {
			position = e
			console.log(JSON.stringify(e))
			$("#address").text(e.results[0].address_components[1].long_name);
			return position
		
		},
		error: function(e) {
			setItem("errorGps",JSON.stringify(e))
			return position
		}
	})
	}
	
}

function showError(error) {
	var t_h = "错误信息：<br>";
	switch(error.code) {
		case error.TIMEOUT:
			t_h += "请求超时。如果在中国地区，谷歌 Chrome 或基于此内核的浏览器可能无法定位，您可以尝试其它浏览器如 IE / Edge。<br />A timeout occured! Please try again!";
			break;
		case error.POSITION_UNAVAILABLE:
			t_h += "抱谦，无法检测位置。如果设备有GPS，需在室外且GPS正常启动。<br />We can't detect your location. Sorry!";
			break;
		case error.PERMISSION_DENIED:
			t_h += "请充许浏览器访问地理位置请求。<br />Please allow geolocation access for this to work.";
			break;
		case error.UNKNOWN_ERROR:
			t_h += "发生未知错误<br />An unknown error occured!";
			break;
		default:
			t_h += "发生未知错误<br />An unknown error occured!";
			break;
	}
	//错误回调
	try {
//		mui.alert(t_h,global_lange['1023'],global_lange['1139'])
		setindexpage.start.error1();
	} catch(e) {}
	return false;
	//失败
}
var cli_bth = {
	init: function() {
		this.exdent();
	},
	mobilecheck: function() {
		var check = false;
		(function(a) {
			if(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check = true
		})(navigator.userAgent || navigator.vendor || window.opera);
		return check;
	},
	exdent: function() {
		var th = this;
		var support = {
				animations: Modernizr.cssanimations
			},
			animEndEventNames = {
				'WebkitAnimation': 'webkitAnimationEnd',
				'OAnimation': 'oAnimationEnd',
				'msAnimation': 'MSAnimationEnd',
				'animation': 'animationend'
			},
			animEndEventName = animEndEventNames[Modernizr.prefixed('animation')],
			onEndAnimation = function(el, callback) {
				var onEndCallbackFn = function(ev) {
					if(support.animations) {
						if(ev.target != this) return;
						this.removeEventListener(animEndEventName, onEndCallbackFn);
					}
					if(callback && typeof callback === 'function') {
						callback.call();
					}
				};
				if(support.animations) {
					el.addEventListener(animEndEventName, onEndCallbackFn);
				} else {
					onEndCallbackFn();
				}
			},
			eventtype = th.mobilecheck() ? 'touchstart' : 'click';

		[].slice.call(document.querySelectorAll('.cbutton')).forEach(function(el) {
			el.addEventListener(eventtype, function(ev) {
				classie.add(el, 'cbutton--click');
				onEndAnimation(classie.has(el, 'cbutton--complex') ? el.querySelector('.cbutton__helper') : el, function() {
					classie.remove(el, 'cbutton--click');
				});
			});
		});
	}

}
//计算两点间距离
function getGreatCircleDistance(lat1, lng1, lat2, lng2) {
	var EARTH_RADIUS = 6378137.0; //单位M
	var radLat1 = getRad(lat1);
	var radLat2 = getRad(lat2);
	var a = radLat1 - radLat2;
	var b = getRad(lng1) - getRad(lng2);
	var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
	s = s * EARTH_RADIUS;
	s = Math.round(s * 10000) / 10000.0;
	return s;
}

function getRad(d) {
	var PI = Math.PI;
	return d * PI / 180.0;
}
//注册选择地区
var reg_datas = [{
		"text": "Malaysia+60",
		"value": "60"
	},
	{
		"text": "Singapore+65",
		"value": "65"
	},
	{
		"text": "China (中国)+86",
		"value": "86"
	},
	{
		"text": "Taiwan (台灣)+886",
		"value": "886"
	},
	{
		"text": "Hong Kong (香港)+852",
		"value": "852"
	},
	{
		"text": "India (भारत)+91",
		"value": "91"
	},
	{
		"text": "Indonesia+62",
		"value": "62"
	},
	{
		"text": "Philippines+63",
		"value": "63"
	},
	{
		"text": "United States+1",
		"value": "1"
	},
	{
		"text": "United Kingdom+44",
		"value": "44"
	},
	{
		"text": "Japan (日本)+81",
		"value": "81"
	},
	{
		"text": "Thailand (ไทย)+66",
		"value": "66"
	},
	{
		"text": "South Korea (대한민국)+82",
		"value": "82"
	},
	{
		"text": "Afghanistan (‫افغانستان‬‎)+93",
		"value": "93"
	},
	{
		"text": "Albania (Shqipëri)+355",
		"value": "355"
	},
	{
		"text": "Algeria (‫الجزائر‬‎)+213",
		"value": "213"
	},
	{
		"text": "American Samoa+1684",
		"value": "1684"
	},
	{
		"text": "Andorra+376",
		"value": "376"
	},
	{
		"text": "Angola+244",
		"value": "244"
	},
	{
		"text": "Anguilla+1264",
		"value": "1264"
	},
	{
		"text": "Antigua and Barbuda+1268",
		"value": "1268"
	},
	{
		"text": "Argentina+54",
		"value": "54"
	},
	{
		"text": "Armenia (Հայաստան)+374",
		"value": "374"
	},
	{
		"text": "Aruba+297",
		"value": "297"
	},
	{
		"text": "Australia+61",
		"value": "61"
	},
	{
		"text": "Austria (Österreich)+43",
		"value": "43"
	},
	{
		"text": "Azerbaijan (Azərbaycan)+994",
		"value": "994"
	},
	{
		"text": "Bahamas+1242",
		"value": "1242"
	},
	{
		"text": "Bahrain (‫البحرين‬‎)+973",
		"value": "973"
	},
	{
		"text": "Bangladesh (বাংলাদেশ)+880",
		"value": "880"
	},
	{
		"text": "Barbados+1246",
		"value": "1246"
	},
	{
		"text": "Belarus (Беларусь)+375",
		"value": "375"
	},
	{
		"text": "Belgium (België)+32",
		"value": "32"
	},
	{
		"text": "Belize+501",
		"value": "501"
	},
	{
		"text": "Benin (Bénin)+229",
		"value": "229"
	},
	{
		"text": "Bermuda+1441",
		"value": "1441"
	},
	{
		"text": "Bhutan (འབྲུག)+975",
		"value": "975"
	},
	{
		"text": "Bolivia+591",
		"value": "591"
	},
	{
		"text": "Bosnia and Herzegovina (Босна и Херцеговина)+387",
		"value": "387"
	},
	{
		"text": "Botswana+267",
		"value": "267"
	},
	{
		"text": "Brazil (Brasil)+55",
		"value": "55"
	},
	{
		"text": "British Indian Ocean Territory+246",
		"value": "246"
	},
	{
		"text": "British Virgin Islands+1284",
		"value": "1284"
	},
	{
		"text": "Brunei+673",
		"value": "673"
	},
	{
		"text": "Bulgaria (България)+359",
		"value": "359"
	},
	{
		"text": "Burkina Faso+226",
		"value": "226"
	},
	{
		"text": "Burundi (Uburundi)+257",
		"value": "257"
	},
	{
		"text": "Cambodia (កម្ពុជា)+855",
		"value": "855"
	},
	{
		"text": "Cameroon (Cameroun)+237",
		"value": "237"
	},
	{
		"text": "Canada+1",
		"value": "1"
	},
	{
		"text": "Cape Verde (Kabu Verdi)+238",
		"value": "238"
	},
	{
		"text": "Caribbean Netherlands+599",
		"value": "599"
	},
	{
		"text": "Cayman Islands+1345",
		"value": "1345"
	},
	{
		"text": "Central African Republic (République centrafricaine)+236",
		"value": "236"
	},
	{
		"text": "Chad (Tchad)+235",
		"value": "235"
	},
	{
		"text": "Chile+56",
		"value": "56"
	},
	{
		"text": "Christmas Island+61",
		"value": "61"
	},
	{
		"text": "Cocos (Keeling) Islands+61",
		"value": "61"
	},
	{
		"text": "Colombia+57",
		"value": "57"
	},
	{
		"text": "Comoros (‫جزر القمر‬‎)+269",
		"value": "269"
	},
	{
		"text": "Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)+243",
		"value": "243"
	},
	{
		"text": "Congo (Republic) (Congo-Brazzaville)+242",
		"value": "242"
	},
	{
		"text": "Cook Islands+682",
		"value": "682"
	},
	{
		"text": "Costa Rica+506",
		"value": "506"
	},
	{
		"text": "Côte d’Ivoire+225",
		"value": "225"
	},
	{
		"text": "Croatia (Hrvatska)+385",
		"value": "385"
	},
	{
		"text": "Cuba+53",
		"value": "53"
	},
	{
		"text": "Curaçao+599",
		"value": "599"
	},
	{
		"text": "Cyprus (Κύπρος)+357",
		"value": "357"
	},
	{
		"text": "Czech Republic (Česká republika)+420",
		"value": "420"
	},
	{
		"text": "Denmark (Danmark)+45",
		"value": "45"
	},
	{
		"text": "Djibouti+253",
		"value": "253"
	},
	{
		"text": "Dominica+1767",
		"value": "1767"
	},
	{
		"text": "Dominican Republic (República Dominicana)+1",
		"value": "1"
	},
	{
		"text": "Ecuador+593",
		"value": "593"
	},
	{
		"text": "Egypt (‫مصر‬‎)+20",
		"value": "20"
	},
	{
		"text": "El Salvador+503",
		"value": "503"
	},
	{
		"text": "Equatorial Guinea (Guinea Ecuatorial)+240",
		"value": "240"
	},
	{
		"text": "Eritrea+291",
		"value": "291"
	},
	{
		"text": "Estonia (Eesti)+372",
		"value": "372"
	},
	{
		"text": "Ethiopia+251",
		"value": "251"
	},
	{
		"text": "Falkland Islands (Islas Malvinas)+500",
		"value": "500"
	},
	{
		"text": "Faroe Islands (Føroyar)+298",
		"value": "298"
	},
	{
		"text": "Fiji+679",
		"value": "679"
	},
	{
		"text": "Finland (Suomi)+358",
		"value": "358"
	},
	{
		"text": "France+33",
		"value": "33"
	},
	{
		"text": "French Guiana (Guyane française)+594",
		"value": "594"
	},
	{
		"text": "French Polynesia (Polynésie française)+689",
		"value": "689"
	},
	{
		"text": "Gabon+241",
		"value": "241"
	},
	{
		"text": "Gambia+220",
		"value": "220"
	},
	{
		"text": "Georgia (საქართველო)+995",
		"value": "995"
	},
	{
		"text": "Germany (Deutschland)+49",
		"value": "49"
	},
	{
		"text": "Ghana (Gaana)+233",
		"value": "233"
	},
	{
		"text": "Gibraltar+350",
		"value": "350"
	},
	{
		"text": "Greece (Ελλάδα)+30",
		"value": "30"
	},
	{
		"text": "Greenland (Kalaallit Nunaat)+299",
		"value": "299"
	},
	{
		"text": "Grenada+1473",
		"value": "1473"
	},
	{
		"text": "Guadeloupe+590",
		"value": "590"
	},
	{
		"text": "Guam+1671",
		"value": "1671"
	},
	{
		"text": "Guatemala+502",
		"value": "502"
	},
	{
		"text": "Guernsey+44",
		"value": "44"
	},
	{
		"text": "Guinea (Guinée)+224",
		"value": "224"
	},
	{
		"text": "Guinea-Bissau (Guiné Bissau)+245",
		"value": "245"
	},
	{
		"text": "Guyana+592",
		"value": "592"
	},
	{
		"text": "Haiti+509",
		"value": "509"
	},
	{
		"text": "Honduras+504",
		"value": "504"
	},
	{
		"text": "Hungary (Magyarország)+36",
		"value": "36"
	},
	{
		"text": "Iceland (Ísland)+354",
		"value": "354"
	},
	{
		"text": "Iran (‫ایران‬‎)+98",
		"value": "98"
	},
	{
		"text": "Iraq (‫العراق‬‎)+964",
		"value": "964"
	},
	{
		"text": "Ireland+353",
		"value": "353"
	},
	{
		"text": "Isle of Man+44",
		"value": "44"
	},
	{
		"text": "Israel (‫ישראל‬‎)+972",
		"value": "972"
	},
	{
		"text": "Italy (Italia)+39",
		"value": "39"
	},
	{
		"text": "Jamaica+1876",
		"value": "1876"
	},
	{
		"text": "Jersey+44",
		"value": "44"
	},
	{
		"text": "Jordan (‫الأردن‬‎)+962",
		"value": "962"
	},
	{
		"text": "Kazakhstan (Казахстан)+7",
		"value": "7"
	},
	{
		"text": "Kenya+254",
		"value": "254"
	},
	{
		"text": "Kiribati+686",
		"value": "686"
	},
	{
		"text": "Kosovo+383",
		"value": "383"
	},
	{
		"text": "Kuwait (‫الكويت‬‎)+965",
		"value": "965"
	},
	{
		"text": "Kyrgyzstan (Кыргызстан)+996",
		"value": "996"
	},
	{
		"text": "Laos (ລາວ)+856",
		"value": "856"
	},
	{
		"text": "Latvia (Latvija)+371",
		"value": "371"
	},
	{
		"text": "Lebanon (‫لبنان‬‎)+961",
		"value": "961"
	},
	{
		"text": "Lesotho+266",
		"value": "266"
	},
	{
		"text": "Liberia+231",
		"value": "231"
	},
	{
		"text": "Libya (‫ليبيا‬‎)+218",
		"value": "218"
	},
	{
		"text": "Liechtenstein+423",
		"value": "423"
	},
	{
		"text": "Lithuania (Lietuva)+370",
		"value": "370"
	},
	{
		"text": "Luxembourg+352",
		"value": "352"
	},
	{
		"text": "Macau (澳門)+853",
		"value": "853"
	},
	{
		"text": "Macedonia (FYROM) (Македонија)+389",
		"value": "389"
	},
	{
		"text": "Madagascar (Madagasikara)+261",
		"value": "261"
	},
	{
		"text": "Malawi+265",
		"value": "265"
	},
	{
		"text": "Maldives+960",
		"value": "960"
	},
	{
		"text": "Mali+223",
		"value": "223"
	},
	{
		"text": "Malta+356",
		"value": "356"
	},
	{
		"text": "Marshall Islands+692",
		"value": "692"
	},
	{
		"text": "Martinique+596",
		"value": "596"
	},
	{
		"text": "Mauritania (‫موريتانيا‬‎)+222",
		"value": "222"
	},
	{
		"text": "Mauritius (Moris)+230",
		"value": "230"
	},
	{
		"text": "Mayotte+262",
		"value": "262"
	},
	{
		"text": "Mexico (México)+52",
		"value": "52"
	},
	{
		"text": "Micronesia+691",
		"value": "691"
	},
	{
		"text": "Moldova (Republica Moldova)+373",
		"value": "373"
	},
	{
		"text": "Monaco+377",
		"value": "377"
	},
	{
		"text": "Mongolia (Монгол)+976",
		"value": "976"
	},
	{
		"text": "Montenegro (Crna Gora)+382",
		"value": "382"
	},
	{
		"text": "Montserrat+1664",
		"value": "1664"
	},
	{
		"text": "Morocco (‫المغرب‬‎)+212",
		"value": "212"
	},
	{
		"text": "Mozambique (Moçambique)+258",
		"value": "258"
	},
	{
		"text": "Myanmar (Burma) (မြန်မာ)+95",
		"value": "95"
	},
	{
		"text": "Namibia (Namibië)+264",
		"value": "264"
	},
	{
		"text": "Nauru+674",
		"value": "674"
	},
	{
		"text": "Nepal (नेपाल)+977",
		"value": "977"
	},
	{
		"text": "Netherlands (Nederland)+31",
		"value": "31"
	},
	{
		"text": "New Caledonia (Nouvelle-Calédonie)+687",
		"value": "687"
	},
	{
		"text": "New Zealand+64",
		"value": "64"
	},
	{
		"text": "Nicaragua+505",
		"value": "505"
	},
	{
		"text": "Niger (Nijar)+227",
		"value": "227"
	},
	{
		"text": "Nigeria+234",
		"value": "234"
	},
	{
		"text": "Niue+683",
		"value": "683"
	},
	{
		"text": "Norfolk Island+672",
		"value": "672"
	},
	{
		"text": "North Korea (조선 민주주의 인민 공화국)+850",
		"value": "850"
	},
	{
		"text": "Northern Mariana Islands+1670",
		"value": "1670"
	},
	{
		"text": "Norway (Norge)+47",
		"value": "47"
	},
	{
		"text": "Oman (‫عُمان‬‎)+968",
		"value": "968"
	},
	{
		"text": "Pakistan (‫پاکستان‬‎)+92",
		"value": "92"
	},
	{
		"text": "Palau+680",
		"value": "680"
	},
	{
		"text": "Palestine (‫فلسطين‬‎)+970",
		"value": "970"
	},
	{
		"text": "Panama (Panamá)+507",
		"value": "507"
	},
	{
		"text": "Papua New Guinea+675",
		"value": "675"
	},
	{
		"text": "Paraguay+595",
		"value": "595"
	},
	{
		"text": "Peru (Perú)+51",
		"value": "51"
	},
	{
		"text": "Poland (Polska)+48",
		"value": "48"
	},
	{
		"text": "Portugal+351",
		"value": "351"
	},
	{
		"text": "Puerto Rico+1",
		"value": "1"
	},
	{
		"text": "Qatar (‫قطر‬‎)+974",
		"value": "974"
	},
	{
		"text": "Réunion (La Réunion)+262",
		"value": "262"
	},
	{
		"text": "Romania (România)+40",
		"value": "40"
	},
	{
		"text": "Russia (Россия)+7",
		"value": "7"
	},
	{
		"text": "Rwanda+250",
		"value": "250"
	},
	{
		"text": "Saint Barthélemy (Saint-Barthélemy)+590",
		"value": "590"
	},
	{
		"text": "Saint Helena+290",
		"value": "290"
	},
	{
		"text": "Saint Kitts and Nevis+1869",
		"value": "1869"
	},
	{
		"text": "Saint Lucia+1758",
		"value": "1758"
	},
	{
		"text": "Saint Martin (Saint-Martin (partie française))+590",
		"value": "590"
	},
	{
		"text": "Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)+508",
		"value": "508"
	},
	{
		"text": "Saint Vincent and the Grenadines+1784",
		"value": "1784"
	},
	{
		"text": "Samoa+685",
		"value": "685"
	},
	{
		"text": "San Marino+378",
		"value": "378"
	},
	{
		"text": "São Tomé and Príncipe (São Tomé e Príncipe)+239",
		"value": "239"
	},
	{
		"text": "Saudi Arabia (‫المملكة العربية السعودية‬‎)+966",
		"value": "966"
	},
	{
		"text": "Senegal (Sénégal)+221",
		"value": "221"
	},
	{
		"text": "Serbia (Србија)+381",
		"value": "381"
	},
	{
		"text": "Seychelles+248",
		"value": "248"
	},
	{
		"text": "Sierra Leone+232",
		"value": "232"
	},
	{
		"text": "Sint Maarten+1721",
		"value": "1721"
	},
	{
		"text": "Slovakia (Slovensko)+421",
		"value": "421"
	},
	{
		"text": "Slovenia (Slovenija)+386",
		"value": "386"
	},
	{
		"text": "Solomon Islands+677",
		"value": "677"
	},
	{
		"text": "Somalia (Soomaaliya)+252",
		"value": "252"
	},
	{
		"text": "South Africa+27",
		"value": "27"
	},
	{
		"text": "South Sudan (‫جنوب السودان‬‎)+211",
		"value": "211"
	},
	{
		"text": "Spain (España)+34",
		"value": "34"
	},
	{
		"text": "Sri Lanka (ශ්‍රී ලංකාව)+94",
		"value": "94"
	},
	{
		"text": "Sudan (‫السودان‬‎)+249",
		"value": "249"
	},
	{
		"text": "Suriname+597",
		"value": "597"
	},
	{
		"text": "Svalbard and Jan Mayen+47",
		"value": "47"
	},
	{
		"text": "Swaziland+268",
		"value": "268"
	},
	{
		"text": "Sweden (Sverige)+46",
		"value": "46"
	},
	{
		"text": "Switzerland (Schweiz)+41",
		"value": "41"
	},
	{
		"text": "Syria (‫سوريا‬‎)+963",
		"value": "963"
	},
	{
		"text": "Tajikistan+992",
		"value": "992"
	},
	{
		"text": "Tanzania+255",
		"value": "255"
	},
	{
		"text": "Timor-Leste+670",
		"value": "670"
	},
	{
		"text": "Togo+228",
		"value": "228"
	},
	{
		"text": "Tokelau+690",
		"value": "690"
	},
	{
		"text": "Tonga+676",
		"value": "676"
	},
	{
		"text": "Trinidad and Tobago+1868",
		"value": "1868"
	},
	{
		"text": "Tunisia (‫تونس‬‎)+216",
		"value": "216"
	},
	{
		"text": "Turkey (Türkiye)+90",
		"value": "90"
	},
	{
		"text": "Turkmenistan+993",
		"value": "993"
	},
	{
		"text": "Turks and Caicos Islands+1649",
		"value": "1649"
	},
	{
		"text": "Tuvalu+688",
		"value": "688"
	},
	{
		"text": "U.S. Virgin Islands+1340",
		"value": "1340"
	},
	{
		"text": "Uganda+256",
		"value": "256"
	},
	{
		"text": "Ukraine (Україна)+380",
		"value": "380"
	},
	{
		"text": "United Arab Emirates (‫الإمارات العربية المتحدة‬‎)+971",
		"value": "971"
	},
	{
		"text": "Uruguay+598",
		"value": "598"
	},
	{
		"text": "Uzbekistan (Oʻzbekiston)+998",
		"value": "998"
	},
	{
		"text": "Vanuatu+678",
		"value": "678"
	},
	{
		"text": "Vatican City (Città del Vaticano)+39",
		"value": "39"
	},
	{
		"text": "Venezuela+58",
		"value": "58"
	},
	{
		"text": "Vietnam (Việt Nam)+84",
		"value": "84"
	},
	{
		"text": "Wallis and Futuna+681",
		"value": "681"
	},
	{
		"text": "Western Sahara (‫الصحراء الغربية‬‎)+212",
		"value": "212"
	},
	{
		"text": "Yemen (‫اليمن‬‎)+967",
		"value": "967"
	},
	{
		"text": "Zambia+260",
		"value": "260"
	},
	{
		"text": "Zimbabwe+263",
		"value": "263"
	},
	{
		"text": "Åland Islands+358",
		"value": "358"
	}
]